package com.filldream.fastboot.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 权限菜单
 * </p>
 *
 * @author RickSun
 * @since 2020-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 菜单名称
     */
    private String name;
    /**
     * 菜单编码
     */
    private String code;
    /**
     * 父级菜单
     */
    @TableField("parent_id")
    private Long parentId;
    /**
     * 是否是菜单 0-否 1-是
     */
    @TableField("is_menu")
    private Integer isMenu;
    /**
     * 菜单跳转地址
     */
    @TableField("menu_url")
    private String menuUrl;
    /**
     * 排序，大大
     */
    private Integer menuRank;
    /**
     * 图标
     */
    private String icon;
    @TableField("is_del")
    private Integer isDel;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;

    private String parentName;

}
